<?php
/**
 * Created by PhpStorm.
 * User: windows10
 * Date: 2020/4/15
 * Time: 22:15
 */
//$preg = '/<img.+data-original=\"?(.+\.(jpg|gif|bmp|bnp|png))\"?.+>/i';
//$str = '<img class="lazy" src="https://static.669pic.com/img/lz.jpg" data-original="https://images.669pic.com/element_banner/52/28/95/27/9c3abf91b534b99e87ccdd663aa60f48.jpg" alt="大气深色展台背景图" data-height="300"/>';

$str = '
                        <a href="/bj/217787.html" data-id="217787" target="_blank">
                            <img class="lazy" src="https://static.669pic.com/img/lz.jpg" data-original="https://images.669pic.com/element_banner/52/28/95/27/9c3abf91b534b99e87ccdd663aa60f48.jpg" alt="大气深色展台背景图" data-height="300"/></a>
                        <a href="javascript:;" data-pictype="2" class="fun-btn download ajaxdownloadNew2" title="免费下载" data-id="217787" rel="nofollow">免费下载</a>
                        <div class="imgTxtInfo">
                            <h3 class="_title">
                            <a title="大气深色展台背景图" href="/bj/217787.html" target="_blank">大气深色展台背景图</a>

                            </h3>
                            <div class="ci_info">
                                800*800                            </div>

                        </div>
                    ';
$preg = '/href=\"([^\"]+)/';
preg_match($preg,$str,$match);
var_dump($match);exit;

